<?php
/**
 * Created by PhpStorm.
 * User: lihao
 * Date: 2017/7/25
 * Time: 下午4:19
 */

class Test extends MY_Controller {


    public function index() {
        setcookie('uid', 1000, 60 * 60 * 24);
        $uid = get_cookie('uid');
        if ($uid == null) {
            echo '---------';
        }

        echo var_dump($uid);
//        if ($re) {
//            echo 1;
//        } else {
//            echo 0;
//        }
    }
}